package com.rikao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import utils.IdWorker;


@SpringBootApplication
public class BaseApplication {
    public static void main(String[] args) {

        SpringApplication.run(BaseApplication.class);
    }

    //注入Idworker的bean
@Bean
    public IdWorker getIdWorker(){
        return new IdWorker(1,1);
    }

}
